package com.kaili.basic.mapper;

import com.baomidou.mybatisplus.plugins.Page;
import com.kaili.common.entity.BaseDepartment;
import com.kaili.common.entity.BaseDepartmentUpdateVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface BaseDepartmentMapper {
    int addDep(BaseDepartment baseDepartment);

    int deleteDep(Long did);

    List<BaseDepartment> getDepByPid(Long pid);

    List<BaseDepartment> getAllDeps();

    List<BaseDepartment> getPageDeps(Page<BaseDepartment> page,BaseDepartment baseDepartment);

    int modifyDep(BaseDepartmentUpdateVO baseDepartment);
}
